package order.controller;


import order.pojo.Order;
import order.pojo.Result;
import order.service.ServiceImpl.OrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/OrderSeaContral")
public class OrderSeaContral {

    @Autowired
    OrderServiceImpl orderServiceImpl;

    @PostMapping("/deduct")
    public Result<Object> deduct(@RequestBody Order order) {
        String b = orderServiceImpl.creatOrder(order);
        return new Result<>("通讯正常", 200, b);
    }


}
